import React from "react";
import { prefixCls } from "../constant";

export interface PageTotalProps {
  total: number;
}

const PageTotal: React.VFC<PageTotalProps> = (props) => {
  const { total } = props;
  const classname = `${prefixCls}-options-item`;
  const totalCls = `${prefixCls}-total`;
  return (
    <li className={classname}>
      共<div className={totalCls}>{total}</div>条
    </li>
  );
};

export default PageTotal;
